
EXE=ProcessBar.exe
SRC=$(wildcard *.c)
OBJ=$(SRC:.c=.o)

CC=gcc
LFLAGS=-o
CFLAGS=-c
STD=-std=c99

RM=rm -rf

$(EXE):$(OBJ)
	@$(CC) $(LFLAGS) $@ $^
	@echo "Doing Linking ..."
%.o:%.c
	@$(CC) $(CFLAGS) $< $(STD)
	@echo "Doing Compling ..."
.PHONY:clean
clean:
	@$(RM) $(EXE) $(OBJ)
	@echo "Dong Cleaning ..."
